package model

import (
	"gorm.io/gorm"
	"zk3/petpal-service/config"
)

type Package struct {
	gorm.Model
	Name     string  `gorm:"type:varchar(30);comment:套餐名字"`
	PetPalID int     `gorm:"type:int(11);comment:宠物"`
	Address  string  `gorm:"type:varchar(50);comment:地址"`
	Store    string  `gorm:"type:varchar(30);comment:门店"`
	Price    float64 `gorm:"type:decimal(10,2);comment:价格"`
}

func Create(p *Package) error {

	return config.DB.Create(&p).Error
}
